

<template>
  <div class="app-box" :color-mode="mode">
    <van-config-provider :theme-vars="themeVars">
      <RouterView />

      <MyFooter v-if="$route.meta.footerShow" ></MyFooter>
    </van-config-provider></div>

</template>
<script setup lang="ts">
import { themeVars } from '@/config/theme'
import MyFooter from '@/views/myFooter.vue'
import { useCounterStore} from '@/stores/counter'
import { storeToRefs } from 'pinia'



  const counterStore = useCounterStore()
  const { mode }=storeToRefs(counterStore)
  console.log(mode);







</script>

<style scoped lang="scss">

</style>
